package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.StoreHouseBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface StoreHouseService extends BaseService<StoreHouseBean> {

	StoreHouseBean getStoreHouseBeanById(String id) throws Exception;
	
	void removeStoreHouseBeanById(String id) throws Exception;
	
	void removeStoreHouseBeanByIds(String ids) throws Exception;
	
	StoreHouseBean saveStoreHouseBean(StoreHouseBean crm) throws Exception;
	
	StoreHouseBean updateStoreHouseBean(StoreHouseBean crm) throws Exception;
	
	Page<StoreHouseBean>  findStoreHouseBeanByCond(StoreHouseBean bean,
			Page<StoreHouseBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveStoreHouseBeanExt(String sql) throws Exception;

	String findStoreHouseBeanExtCreate(String tableName) throws Exception;

	String findStoreHouseBeanExtEdit(String tableName, String id)
			throws Exception;

	String findStoreHouseBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasStoreHouseBeanExtData(String tableName, String id)
			throws Exception;
}